//
//  ChannelModel.m
//  项目
//
//  Created by 杨世博 on 15-1-4.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "ChannelModel.h"

@implementation ChannelModel
- (void)dealloc
{
    [_name release];
    [_covering release];
    [_picurl release];
    [_addtime_f release];
    [super dealloc];
}
- (instancetype)initWithName:(NSString *)name covering:(NSString *)covering picurl:(NSString *)picurl addtime_f:(NSString *)addtime_f
{
    self = [super init];
    if (self) {
        self.name = name;
        self.covering = covering;
        self.picurl = picurl;
        self.addtime_f = addtime_f;
    }
    return self;
}

+ (instancetype)channelModelWithName:(NSString *)name covering:(NSString *)covering picurl:(NSString *)picurl addtime_f:(NSString *)addtime_f
{
    ChannelModel *model = [[ChannelModel alloc] initWithName:name covering:covering picurl:picurl addtime_f:addtime_f];
    return [model autorelease];
}




- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}

@end
